package com.gdzl_hadoop.common;

import com.gdzl_hadoop.dao.XzqMapper;
import com.gdzl_hadoop.pojo.Xzq;
import org.springframework.beans.factory.annotation.Autowired;

import java.security.PublicKey;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * Created by 1032019725 on 2017/10/17.
 */
public class Const {
    public static final String CURRENT_USER = "current_user";
    public static final String EMAIL = "email";
    public static final String USERNAME = "username";

    public interface Role{
        int ROLE_CUSTOMER = 0;//普通用户
        int ROLE_ADMIN = 1;//管理员
    }

    public final static Map map = new HashMap();
    static {
        map.put("Algorithm_FPG", 1001);
        map.put("Algorithm_PCA", 1002);
        map.put("Algorithm_COM", 1003);

    }


    public final static HashMap<String, String> Hlxfx_zf_map = new HashMap();
    static {
        Hlxfx_zf_map.put("bctrzd", "表层土壤质地");
        Hlxfx_zf_map.put("pmgx", "剖面构型");
        Hlxfx_zf_map.put("dxpd", "地形坡度");
        Hlxfx_zf_map.put("tmpd", "田面坡度");
    }
    public final static HashMap<String, String> Hlxfx_sz_map = new HashMap();
    static {
        Hlxfx_sz_map.put("yzhcd", "盐渍化程度");
        Hlxfx_sz_map.put("tryjzhl", "土壤有机质含量");
        Hlxfx_sz_map.put("trsjd", "土壤酸碱度");
        Hlxfx_sz_map.put("zacjdbsd", "障碍层距地表深度");
        Hlxfx_sz_map.put("pstj", "排水条件");
        Hlxfx_sz_map.put("ggbzl", "灌溉保证率");
        Hlxfx_sz_map.put("dbysltd", "地表岩石露头度");
        Hlxfx_sz_map.put("dxsw", "地下水位");
        Hlxfx_sz_map.put("yxtchd", "有效土层厚度");
    }

}
